Trellis đ roots.io/trellis
Pantheon đ pantheon.io
ManageWP đ managewp.com
Bash scripts, WP-CLI and SSH
No WordPress maintenance solution is perfect.
15 09 * * 3 captaincore update @production.updates-on --fleet
# update-everything.sh
wp plugin update --all
wp theme update --all
wp plugin update --all --skip-plugins --skip-themes
wp theme update --all --skip-plugins --skip-themes
wp core update
wp core update-db
wp core update-db --network
Only exclude updates if necessary. More complex scripting required to handle per site configurations.
echo "<?php define( 'WP_ADMIN', true ); ?>" > define-wp-admin.php
wp theme update --all --require="define-wp-admin.php"
wp plugin update --all --require="define-wp-admin.php"
wp plugin install $plugin_url --force
# plugins-zip.sh
plugins=(plugin-slug-1 plugin-slug-2 plugin-slug-3)
cd wp-content/plugins
for plugin in ${plugins[@]}; do
zip -r ${plugin}.zip $plugin
done
Step #1: Run on source site which has plugins installed.
ssh user@source-address "bash -s" < plugins-zip.sh
Step #2: Deploy via WP-CLI + SSH to destination site
ssh user@destination-address "wp plugin install $plugin_url --force"
wp wc update # Runs WooCommerce database upgrades
wp core update # Updated WordPress core
wp core update-db # Runs WordPress database upgrades
RECOVERY_MODE_EMAIL
within wp-config.phpdefine( 'RECOVERY_MODE_EMAIL', 'email@domain.tld' );
Taken from my WordPress management toolkit is open source and currently â ī¸ alpha development stage.
CaptainCore đ captaincore.io